/**
 * 
 */
package fr.mynounou.exceptions.dao;

import fr.mynounou.exceptions.MyNounouException;

/**
 * @author btavernier
 *
 */
@SuppressWarnings("serial")
public final class NotUniqueException extends MyNounouException {
	Object o;
	
	public NotUniqueException(Object o){
		super();
		this.o = o;
	}

	/* (non-Javadoc)
	 * @see fr.mynounou.exceptions.MyNounouException#getMessage()
	 */
	@Override
	public String getMessage() {
		return super.getMessage()+" Not unique entity exception :"+o.toString();
	}
	
}
